//
//  UIWindow+SimpleAlertView.m
//  MetalEquipUnion
//
//  Created by tangbin on 2021/8/15.
//

#import "UIWindow+SimpleAlertView.h"

@implementation UIWindow (SimpleAlertView)

- (void)setSimpleAlertView:(TYZSimpleAlertView *)simpleAlertView
{
    objc_setAssociatedObject(self, @selector(simpleAlertView), simpleAlertView, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

- (TYZSimpleAlertView *)simpleAlertView
{
    return objc_getAssociatedObject(self, _cmd);
}

- (void)setSimpleAlertMaskView:(UIView *)simpleAlertMaskView
{
    objc_setAssociatedObject(self, @selector(simpleAlertMaskView), simpleAlertMaskView, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

- (UIView *)simpleAlertMaskView
{
    return objc_getAssociatedObject(self, _cmd);
}


@end
